<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
session_start();
include_once('include/innit.php');
//import thu vien
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Quản lý</title>
        <link rel='stylesheet' type='text/css' href='style/style.css'/>

        <script type="text/javascript">
            $(document).ready(function () {
                // Sự kiện khi ô checkAll được check
                $("input[name='chk_all']").click(function () {

                    // Thêm thuộc tính checked cho ô checkAll
                    var checked = $(this).attr("checked");

                    // Thêm thuộc tính checked cho ô checkbox khác
                    $(".tbl_list tr td input:checkbox").attr("checked", checked);
                });
            });

        </script>
    </head>
    <body>
        <div class="wrapper">
            <?php
            if (!isset($_SESSION['name'])) {
                include('modules/login.php');
            } else {

                //echo "<h3>Welcome to the Admin Panel, ". $_SESSION['name']."</h3>";
                ?>
                <div id = 'main' >			
                    <div id="nav"><?php include('modules/layout.php'); ?></div>
                    <div id="body">
                        <?php
                        $page = "";
                        if (isset($_GET['page']))
                            $page = $_GET['page'];
                        $thiscom = 'components/com_' . $page . '/layout.php';
                        if (is_file($thiscom))
                            include($thiscom);
                        else
                            echo "<div align='center'><img width=700px  src='images/hello_admin.jpg'/></div>";
                        ?>
                    </div>
                    <div id='footer'>
                        Copyright &copy by ABC
                    </div>
                </div>
            <?php } ?>           
        </div>
    </body>
</html>
